<? session_start();
require "../../../global.php";//$dirname."/".
require RootDir."/"."inc/config.php";
require RootDir."/"."inc/Uifunction.php";
require RootDir."/".$SystemConest[1]."/UIFunction/adminClass.php";
require RootDir."/".$SystemConest[1]."/system/Config.php";
require RootDir."/".$SystemConest[1]."/system/menusys/function.php";
?>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<link href="../../Inc/Css.css" rel="stylesheet" type="text/css" />
</head>

<body>
<?
if($_SESSION["Login"][1]<>$SystemConest[2])
{
	die("你不是超级管理员,没有权限设置");
}


$MenuId=$_REQUEST["MenuId"];

//response.write CurrPosition(Cint(MenuId),MyConn.Conn)
$CurrMenuId=$_REQUEST["CurrMenuId"];
if($CurrMenuId=="")
  echo  ">添加一级栏目";
else
  echo ">添加二级栏目";


?>
</p>
<form id="form1" name="form1" method="post" action="Add_Save.php?CurrMenuId=<? echo $CurrMenuId;?>&MenuId=<? echo $_REQUEST["MenuId"];?>">
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <p>&nbsp;</p>
  <table width="95%" border="0" align="center">
 <? if($CurrMenuId<>"")
  {
  ?>
     <tr>
      <td width="35%"><div align="right">一级栏目：</div></td>
      <td width="65%"><label>
        <? echo $_REQUEST["Menu1Name"];?>
      </label></td>
    </tr>
<? }  ?>
 
    <tr>
      <td width="35%"><div align="right">栏目名称：</div></td>
      <td width="65%"><label>
        <input name="SysMenu1" type="text" size="30" />
      </label></td>
    </tr>
    <tr>
      <td><div align="right">栏目功能：</div></td>
      <td><?  SystemList("","SysMenu2");?></td>
    </tr>
    <tr>
      <td align="right">链接地址：</td>
      <td> <input name="urllinks" type="text" size="30" /></td>
    </tr>
    <tr>
      <td><div align="right">排序：</div></td>
      <td><label>
        <input name="SysMenu3" type="text" value="1" size="10" />
      </label></td>
    </tr>
    <tr>
      <td>&nbsp;</td>
      <td><label>
        <input type="submit" name="Submit" value="保存" />
        <input type="button" name="Submit2" value="取消" onClick="window.history.back();"/>
      </label></td>
    </tr>
  </table>
</form>
<div style="margin-left:100px;">1、当链接地址有值时。左边的栏目的链接为此值。</div>
</body>
</html>
